<div ng-controller="CuratorFormController">
    <div align="center">
        <form ng-submit="submit()">
            <table id="users" class="mainPanel" align="center">
                <tr>
                    <td align="center">
                        <span class="acheivement-editorTitle">Enter Google id:</span>
                        <input type="text" name="googleNickName" ng-model="curator.googleNickName">
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <span class="acheivement-editorTitle">Choose group:</span>&nbsp;
                        <select class="dropdown" ng-model="curator.group" ng-controller="GroupListController">
                            <option ng-repeat="agroup in groups" value="{{agroup.type}}">{{agroup.name}}</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <input type="submit" class="acheivement-button" value="Add curator">
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div id="curatorTable" ng-controller="CuratorTableController">
        <div>
            <table ng-table="tableParams" class="table mytable" width="75%" name="students">
                <tr ng-repeat="datum in $data">
                    <td data-title="'ID'">{{datum.nickname}}</td>
                    <td data-title="'Group'">{{datum.group}}</td>
                    <!--<td data-title="'ID'" align="center">{{user.id}}</td>-->
                    <td><a id="{{datum.key}}" class="close" ng-click="deleteEntity(this)">&times;</a></td>
                </tr>
            </table>
        </div>
    </div>
</div>